﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Inventory
{
    partial class tblProduct
    {
        public int? computedMaxPerHousehold
        {
            get { return MaxPerHousehold ?? ((IsA == null) ? null : IsA.MaxPerHousehold); }
            set { MaxPerHousehold = value; }
        }

        public decimal? computedWeight
        {
            get { return Weight ?? ((IsA == null) ? null : IsA.Weight); }
            set { Weight = value; }
        }

        public string computedColor
        {
            get { return Color ?? ((IsA == null) ? null : IsA.Color); }
            set { Color = value; }
        }

        public string computedSize
        {
            get { return Size ?? ((IsA == null) ? null : IsA.Size); }
            set { Size = value; }
        }
    }
}
